package project.bluetooth.com.loadsirproject.app;

import android.app.Application;

import com.kingja.loadsir.core.LoadSir;

import project.bluetooth.com.loadsirproject.callback.EmptyCallback;
import project.bluetooth.com.loadsirproject.callback.ErrorCallback;
import project.bluetooth.com.loadsirproject.callback.LoadingCallback;
import project.bluetooth.com.loadsirproject.callback.TimeoutCallback;

/**
 * Created by lgs on 2018/4/19.
 */

public class BaseApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
    }

    private void initLoadSir() {

        LoadSir.beginBuilder()
                .addCallback(new ErrorCallback())
                .addCallback(new EmptyCallback())
                .addCallback(new LoadingCallback())
                .addCallback(new TimeoutCallback())
                .setDefaultCallback(LoadingCallback.class)
                .commit();
    }
}
